import request from '@/request/index.js'
import { C2B  } from '../utils/wordtransfer'

/**
 * 查询房间列表
 */
export const list = (data={keyword:''})=>{
    return request.post(`/reporter/list`,data)
}

/**
 * 查询房间列表并分页
 */
export const page = (data={keyword:''})=>{
    return request.post(`/reporter/page`,data)
}

/**
 * 根据id查询房间信息
 */
export const GetById = ( id )=>{
    return request.post(`/reporter/get/${id}`)
}

/**
 * 保存房间
 */
export const SaveData = ( data )=>{
    return request.post(`/reporter/save`,data)
}

/**
 * 更新房间信息
 */
export const UpdateData = ( data )=>{
    return request.post(`/reporter/update`,data)
}


/**
 * 根据id删除房间信息
 */
export const DelById = ( id )=>{
    return request.post(`/reporter/delete/${id}`)
}

/**
 * 根据id删除房间信息
 */
export const ResetPwd = ( data )=>{
    return request.post(`/reporter/pwd`,data)
}




